<%@ Control Language="C#" AutoEventWireup="true" Codebehind="NavPortal.ascx.cs" Inherits="Framework.Module.CMS.Web.HomePage.NavPortal" %>


<script type="text/javascript">
    function OnClick(id) { 
        if (document.getElementById(id).style.display == "block" ) {
            document.getElementById(id).style.display = "none";        
        } else {                        
            document.getElementById(id).style.display = "block";                
        }       
    }    
</script>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <th scope="col">
            <img src="/images/HomePage/n_top_left_mn.jpg" width="200" height="34" /></th>
    </tr>
    <tr>
        <th background="/images/HomePage/n_bg_left_mn.jpg" scope="col">
            <table border="0" background="/images/HomePage/n_bg_left_mn.jpg" cellpadding="0"
                cellspacing="0" style="width: 100%">
                <tr>
                    <td>
                        <asp:DataList ID="DataListMenu" runat="server" CellPadding="0" CellSpacing="0" Width="100%"
                            OnItemDataBound="Item_DatalistBound">
                            <ItemTemplate>
                                <div onclick="OnClick('<%# Eval("PortalID") %>')">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td width="12">
                                            </td>
                                            <td height="27" width="90%" style="cursor: pointer">
                                                <img src="/images/HomePage/n_icon_mn.gif" width="12" height="5" />
                                                <asp:Label ID="lbllayout" CssClass="text2" runat="server" Text='<%# Eval("Portal_Name")%>'></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th scope="col">
                                            </th>
                                            <th background="/images/HomePage/line1.gif" scope="col">
                                                <img src="/images/HomePage/blank.gif" width="1" height="1" /></th>
                                            <th scope="col">
                                            </th>
                                        </tr>
                                    </table>
                                </div>
                                <div id="<%# Eval("PortalID") %>" style="display: none">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td colspan="2" align="center">
                                                <asp:DataList ID="DataListMenuSub" runat="server" Width="100%">
                                                    <ItemTemplate>
                                                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                            <tr>
                                                                <td height="27" align="center">
                                                                    <div style="padding-left: 30px">
                                                                        <strong><a href="<%# BuildUrlbyPortal(Framework.Library.Utilities.ConvertUtility.ToInt32(Eval("PortalID"))) %>">
                                                                            <%# Eval("Portal_Name")%>
                                                                        </a></strong>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ItemTemplate>
                                                </asp:DataList>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </ItemTemplate>
                        </asp:DataList></td>
                </tr>
            </table>
        </th>
    </tr>
    <tr>
        <th scope="col">
            <img src="/images/HomePage/n_bottom_left_mn.jpg" width="200" height="34" /></th>
    </tr>
</table>
